package com.zxx.casserver.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 系统应用管理-数据库实体类
 *
 * @author zhoukai
 * @since 2020-06-30
 */
@TableName("cas_app")
public class AppDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统主键
     */
    @TableId(value = "app_id", type = IdType.ASSIGN_ID)
    private Long appId;

    /**
     * 应用名称
     */
    private String name;

    /**
     * 应用类型： 1：普通应用  2：系统应用
     */
    private Integer type;

    /**
     * 应用跳转地址
     */
    private String url;

    /**
     * 测试环境跳转url
     */
    private String testUrl;

    /**
     * 应用图标
     */
    private String icon;

    /**
     * 应用描述
     */
    private String remark;

    /**
     * 应用key
     */
    private String appKey;

    /**
     * 应用密钥
     */
    private String appSecret;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTestUrl() {
        return testUrl;
    }

    public void setTestUrl(String testUrl) {
        this.testUrl = testUrl;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "CasApp{" + "appId=" + appId + ", name=" + name + ", type=" + type + ", url=" + url + ", testUrl="
                + testUrl + ", icon=" + icon + ", remark=" + remark + ", appKey=" + appKey + ", appSecret=" + appSecret
                + ", createTime=" + createTime + ", updateTime=" + updateTime + "}";
    }
}
